﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zocono.Infrastructure.Common;

namespace Zocono.WCS.WMSApiDomain.WebApi
{
    public static class Parameters
    {
        public static string BaseWepApiUrl = JsonConfigurationHelper.GetJson("appsettings.json", "WmsBaseWepApiUrl"); //WmsApiConfigureManager.GetStringValue("WmsBaseWepApiUrl");
        public static string BaseWtmApiUrl = JsonConfigurationHelper.GetJson("appsettings.json", "BaseWtmApiUrl"); //WmsApiConfigureManager.GetStringValue("WmsBaseWepApiUrl");

        #region  WCS调用WMS接口

        /// <summary>
        /// WCS巷道申请
        /// </summary>
        public static string WCSCreatUploadWarehouseWMSTask = BaseWepApiUrl + "api/AllotAilseService/WCSCreatUploadWarehouseWMSTask";

        /// <summary>
        /// WCS申请货位
        /// </summary>
        public static string WCSGetAllotLocaton = BaseWepApiUrl + "api/AllotAilseService/WCSGetAllotLocaton";

        /// <summary>
        ///  卸载占位重分配
        /// </summary>
        public static string WCSGetReAllotLocaton = BaseWepApiUrl + "api/AllotAilseService/WCSGetReAllotLocaton";

        /// <summary>
        /// 取空异常接口
        /// </summary>
        public static string WCSNoticeErrorTaskProcessState = BaseWepApiUrl + "api/AllotAilseService/WCSNoticeErrorTaskProcessState";

        /// <summary>
        ///  任务自动完成
        /// </summary>
        public static string WCSNoticeTaskAutoComplete = BaseWepApiUrl + "api/AllotAilseService/WCSNoticeTaskAutoComplete";

        /// <summary>
        /// 获取3种任务接口
        /// </summary>
        public static string WCSGetWMSInitialWorkTask = BaseWepApiUrl + "api/AllotAilseService/WCSGetWMSInitialWorkTask";

        /// <summary>
        /// 到达DO台释放货位
        /// </summary>
        public static string WCSNoticePalltetArriveDoEquipment = BaseWepApiUrl + "api/AllotAilseService/WCSNoticePalltetArriveDoEquipment";

        /// <summary>
        /// 扫码组盘接口(整盘数据)
        /// </summary>
        public static string WCSAddComPallet = BaseWepApiUrl + "api/AllotAilseService/WCSAddComPallet";

        /// <summary>
        /// 解绑
        /// </summary>
        public static string UnbandingContainer = BaseWepApiUrl + "api/AllotAilseService/UnbandingContainer";

        /// <summary>
        /// 扫码绑盘机获取电池类型和数量
        /// </summary>
        public static string WCSGetBatteryInfoByContainerCode = BaseWepApiUrl + "api/AllotAilseService/WCSGetBatteryInfoByContainerCode";


        /// <summary>
        /// WMS手动完成,取消下发给WCS
        /// </summary>
        public static string WCSGetWMSManualFinishORCancelWorkTask = BaseWepApiUrl + "api/AllotAilseService/WCSGetWMSManualFinishORCancelWorkTask";


        /// <summary>
        /// WCS 修改任务状态和任务执行状态
        /// </summary>
        public static string WCSUpdateWMStaskStateAndProcessTaskState = BaseWepApiUrl + "api/AllotAilseService/WCSUpdateWMStaskStateAndProcessTaskState";

        /// <summary>
        /// WCS获取是否是空盘，满盘
        /// </summary>
        public static string WMSCheckExistPalletbatteryCombineInfo = BaseWepApiUrl + "api/AllotAilseService/WMSCheckExistPalletbatteryCombineInfo";

        /// <summary>
        /// 数量检测
        /// </summary>
        public static string WMSGetWMSCCDCheckResult = BaseWepApiUrl + "api/AllotAilseService/WCSGetWMSCCDCheckResult";


        

        /// <summary>
        /// 空盘回库检测
        /// </summary>
        public static string EmptyContainerReturn = BaseWepApiUrl + "api/AllotAilseService/EmptyContainerReturn";


        /// <summary>
        /// 申请盘点模式
        /// </summary>
        public static string WCSGetCheckModel = BaseWepApiUrl + "api/AllotAilseService/WCSGetCheckModel";

        /// <summary>
        /// (盘点)向wms提供数据，返回目标位置
        /// </summary>
        public static string WCSGetCheckDestination = BaseWepApiUrl + "api/AllotAilseService/WCSGetCheckDestination";

        /// <summary>
        /// (盘点)SC取料判断
        /// </summary>
        public static string WCSGetErrorResult = BaseWepApiUrl + "api/AllotAilseService/WCSGetErrorResult";


        /// <summary>
        /// 回滚流程逻辑  一楼环线130187扫码确认 未分配打包台 回滚至 130067
        /// </summary>
        public static string WCSGetRollbackTaskAsync = BaseWepApiUrl + "api/AllotAilseService/WCSGetRollbackTask";


        /// <summary>
        /// 进入打包台，脱离环形线  一楼分配到打包台后
        /// </summary>
        public static string TrayOutRingLineAsync = BaseWepApiUrl + "api/AllotAilseService/TrayOutRingLine";

        /// <summary>
        /// 拉取恒翼能设备状态数据
        /// </summary>
        public static string GetHynnStateAsync = BaseWepApiUrl + "api/AllotAilseService/GetHynnState";
        
        /// <summary>
        /// 达到分选机上报
        /// </summary>
        public static string WCSNoticePalltetArriveFenxuanEquipmentAsync = BaseWepApiUrl + "api/AllotAilseService/WCSNoticePalltetArriveFenxuanEquipment";


        /// <summary>
        /// 分选机获取托盘的信息
        /// </summary>
        public static string GetContainerMsgAsync = BaseWepApiUrl + "api/AutoSelect/GetContainerMsg";


        /// <summary>
        /// 分选机获取托盘的信息
        /// </summary>
        public static string GetGradeAsync = BaseWtmApiUrl + "api/WcsToFsj/PostGrade";

        
        /// <summary>
        /// 分选机上报组盘
        /// </summary>
        public static string PostMesResultAsync = BaseWtmApiUrl + "api/WcsToFsj/PostMesResult";

        
        /// <summary>
        /// 分选机NG挑选剩下电池上报
        /// </summary>
        public static string WCSUploadNgResultAsync = BaseWepApiUrl + "api/AllotAilseService/WCSUploadNgResult";

        
        /// <summary>
        /// 上报电芯信息更新挡位信息
        /// </summary>
        public static string WCSUpdateBatteryGearInfoAsync = BaseWepApiUrl + "api/AllotAilseService/WCSUpdateBatteryGearInfo";

        
        /// <summary>
        /// 跳过当前流程节点
        /// </summary>
        public static string ExtentOutThisProcessAsync = BaseWepApiUrl + "api/AllotAilseService/ExtentOutThisProcess";

        /// <summary>
        /// WCS获取托盘类型 1=空盘 2=半托 3=满盘 -1=报错或者无托盘信息
        /// </summary>
        public static string WCSGetPallentTypeAsync = BaseWepApiUrl + "api/AllotAilseService/WCSGetPallentType";


        /// <summary>
        /// 获取托盘电芯的信息
        /// </summary>
        public static string GetContainerBatteryAsync = BaseWepApiUrl + "api/AllotAilseService/GetContainerBattery";
        #endregion

    }
}
